package nowcoder;

import java.util.Scanner;

public class m的立方都可以写成m个连续奇数之和 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while (s.hasNextInt()) {
            System.out.println(sumStr(s.nextInt()));
        }
    }

    public static String sumStr(int m) {
        StringBuilder sb = new StringBuilder();
        if (m % 2 == 0) {
            int mSquare = m * m;
            int plus = 1;
            while (plus < m) {
                if (sb.length() != 0) {
                    sb.insert(0, "+");
                }
                sb.insert(0, mSquare - plus);
                sb.append("+");
                sb.append(mSquare + plus);
                plus += 2;
            }
        } else {
            int mSquare = m * m;
            int plus = 0;
            while (plus < m) {
                if (sb.length() == 0) {
                    sb.append(mSquare);
                } else {
                    sb.insert(0, "+");
                    sb.insert(0, mSquare - plus);
                    sb.append("+");
                    sb.append(mSquare + plus);
                }
                plus += 2;
            }
        }
        return sb.toString();
    }
}